package com.sc.nft.entity.dto;

import com.sc.nft.enums.SaasTaskConfigurationEnum;
import com.sc.nft.enums.SaasTaskStatusEnum;
import com.sc.nft.enums.SaasTaskTypeEnum;
import com.sc.nft.enums.SaasTaskTypePlaceEnum;
import com.sc.nft.sup.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class SaasTaskBasicsDTO extends PageRequest {
    @ApiModelProperty("daoId")
    private Long daoId;

    @ApiModelProperty(value = "任务状态")
    private Integer taskConfiguration;

    @ApiModelProperty(value = "任务类型")
    private Integer taskType;

    @ApiModelProperty(value = "启用和禁用  1:启用  0:禁用")
    private Integer status;

    public void setStatus(SaasTaskStatusEnum status) {
        if (status == null) {
            return;
        }
        this.status = status.getCode();
    }
    public void setTaskConfiguration(SaasTaskConfigurationEnum taskConfiguration) {
        if (taskConfiguration == null) {
            return;
        }
        this.taskConfiguration = taskConfiguration.getCode();
    }
    public void setTaskType(SaasTaskTypeEnum taskType) {
        if (taskType == null) {
            return;
        }
        this.taskType = taskType.getCode();
    }
}
